package cn.tedu.mybatisxml.mapper;


import cn.tedu.mybatisxml.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;



@Mapper
public interface CommentMapper {
        boolean insert(@Param("content")String content, @Param("user_id")Integer userId,
                   @Param("weibo_id")int weiboId);
        boolean update(@Param("content")String aaa, @Param("id")int id);
//       动态删除，参数数组
        int deleteByIds1(Integer[] id);
//        动态删除，可变参数
        boolean deleteByIds2(Integer... id);
//        动态修改
        boolean dynamicUpdate(Comment comment);
}
